import request from "../request";
/**
 *  地址列表
 * @returns
 */
function getListAction(data) {
  return request({
    url: "address/getListAction",
    data,
  });
}

/**
 * 删除地址
 * @param {*} data
 * @returns
 */
function deleteAction(data) {
  return request({
    url: "address/deleteAction",
    data,
  });
}

/**
 * 编辑&添加地址
 * @param {*} data
 * @returns
 */
function saveAction(data) {
  return request({
    method: "post",
    url: "address/saveAction",
    data,
  });
}

/**
 * 获取地址详情
 * @param {*} data
 * @returns
 */
function detailAction(data) {
  return request({
    url: "address/detailAction",
    data,
  });
}

export { getListAction, deleteAction, saveAction, detailAction };
